<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>bootstrap 组件</title>
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
      rel="stylesheet"
    />
    <style>
      .glyphicon-heart {
        font-size: 20px;
        color: rgb(212, 35, 35);
      }
      .glyphicon-home {
        font-size: 20px;
        color: rgb(54, 54, 201);
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h2>图标</h2>
      <span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
      <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
      <h2>下拉菜单</h2>
      <div class="dropdown">
        <button
          class="btn btn-primary dropdown-toggle"
          type="button"
          id="dropdownMenu1"
          data-toggle="dropdown"
          aria-haspopup="true"
          aria-expanded="true"
        >
          个人中心
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
          <li><a href="#">个人信息</a></li>
          <li><a href="#">我的足迹</a></li>
          <li><a href="#">我的收藏</a></li>
          <li role="separator" class="divider"></li>
          <li><a href="#">退出</a></li>
        </ul>
      </div>

      <h2>输入框组</h2>
      <div class="row">
        <div class="col-lg-4 col-lg-offset-4">
          <div class="input-group">
            <input
              type="text"
              class="form-control"
              placeholder="关键字"
            />
            <span class="input-group-btn">
              <button class="btn btn-default" type="button">搜索</button>
            </span>
          </div>
          <!-- /input-group -->
        </div>
      </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
  </body>
</html>
